package com.niguang.labour.admin.enums;

import lombok.Getter;

@Getter
public enum ManageTypeEnum {

    YG_DESC(1, "员工"),

    BZ_DESC(2, "班组长");

    private Integer index;

    private String name;

    ManageTypeEnum(Integer index, String name) {
        this.index = index;
        this.name = name;
    }

    public static String getName(Integer index) {
        for (ManageTypeEnum c : ManageTypeEnum.values()) {
            if (c.index.equals(index)) {
                return c.name;
            }
        }
        return "";
    }
}
